import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import axios from 'axios'

export const useCounterStore = defineStore('counter', () => {
  // const count = ref(0)
  // const increment = () => {
  //   count.value++
  // }
  // const cue = computed(() => count.value * 2)
  //定义异步
  // const aa = ref([])
  // const ast = async () => {
  //   const res = await axios(url)
  // }
  return { count, increment, cue, }
})
